@echo off
rem > test-python-sed [python-dir]*

if "%1" equ "" (goto default) else (goto explicit)

:default
test-suite.py @all-tests.suites -x test-python-sed.exclude
goto :eof

:explicit
set error=0
:explicit.loop

rem one way to adapt the exclude file to python version
if "%1" leq "\python\273" (
    set exclude=test-python-sed-le-273.exclude
) else (
    set exclude=test-python-sed.exclude
)

%1\python test-suite.py @all-tests.suites -x %exclude%
IF ERRORLEVEL 1 set error=1
shift
if "%1" neq "" (goto explicit.loop) 

if %error%==1 (echo Test failed.) else (echo Test succeeded.)
goto :eof
